package com.wanxi.controller.other;

import com.alibaba.fastjson2.JSONObject;
import com.wanxi.dto.ResultDTO;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin("http://localhost:8081")
public class NoLoginController {
    @RequestMapping("/noLogin")
    public String noLogin(){
        return JSONObject.toJSONString(ResultDTO.builder().code(1).msg("noLogin").data("").count(0).build());

    }
}
